package cc.iits.demo.crane.api.bo;

import java.io.Serializable;

public class Order implements Serializable {

    public Order(String field) {
        this.field = field;
    }

    public Order(String field, OrderBy orderBy) {
        this.field = field;
        this.orderBy = orderBy;
    }

    private String field;
    private OrderBy orderBy = OrderBy.Asc;

    public enum OrderBy {
        Desc, Asc;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public OrderBy getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(OrderBy orderBy) {
        this.orderBy = orderBy;
    }
}


